package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationProtectiveEquipmentDao;
import com.site.wisdom_construction.entity.personnelModule.EducationProtectiveEquipment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/22
 * @Description
 */
@Service
public class EducationProtectiveEquipmentService implements EducationProtectiveEquipmentDao {
    @Autowired
    private EducationProtectiveEquipmentDao educationProtectiveEquipmentDao;

    @Override
    public int insertEducationProtectiveEquipment(Map map) {
        return educationProtectiveEquipmentDao.insertEducationProtectiveEquipment(map);
    }

    @Override
    public int deleteEducationProtectiveEquipment(Map map) {
        return educationProtectiveEquipmentDao.deleteEducationProtectiveEquipment(map);
    }

    @Override
    public int updateEducationProtectiveEquipment(Map map) {
        return educationProtectiveEquipmentDao.updateEducationProtectiveEquipment(map);
    }

    @Override
    public List<EducationProtectiveEquipment> findEducationProtectiveEquipmentByPage(Map map) {
        return educationProtectiveEquipmentDao.findEducationProtectiveEquipmentByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationProtectiveEquipmentDao.Total(map);
    }

    @Override
    public EducationProtectiveEquipment findEducationProtectiveEquipmentByEducationProfessionId(Map map) {
        return educationProtectiveEquipmentDao.findEducationProtectiveEquipmentByEducationProfessionId(map);
    }
}
